73f0a554fa6b3be87281425b50dfcc34dcc3bbbc
[motion2.git] /
1 <md-input-container class="md-block">
2   <md-radio-group
3     name="formItemInput"
4     ng-required="RadioButtonView.formItem.config.required"
5     ng-model="RadioButtonView.formItem.value"
6     layout="{{RadioButtonView.formItem.config.direction == 'horizontal' ? 'row' : 'column'}}"
7     required
8   >
9     <md-radio-button
10       ng-repeat="option in RadioButtonView.formItem.options track by $index"
11       value="{{option.value}}"
12       aria-label="..."
13     >
14       {{option.value}}
15     </md-radio-button>
16   </md-radio-group>
17
18   <div ng-messages="RadioButtonView.form.$error">
19     <div ng-message="required">This field is required</div>
20   </div>
21 </md-input-container>